

<div class='center' id="shadow"><div  id='wrapper_center'>	
<div style="padding:30px;background:white;"> Top 25 tags</div>						
<table class="chart"><tbody>
<?php
$chartsettings = array();
$default_width=95;
$width=0;
$tagsmaxnum=0;
	foreach($data as $key=>$row)
	{
		if($key == 25) break;
		if($key == 0) 
		{ 
			$width = $default_width; 
			$tagsmaxnum = $row['Count']; 
		} 
		else $width = intval($row['Count'] / $tagsmaxnum * $default_width ) ;
	printf("<tr><td class=\"positionCell\">%s</td>",$key+1);
	printf("<td class=\"subjectCell\" title=\"\"><div><a  href=\"/tagged/tag/?tag=%s\">%s</a></div></td>",$row['Tag'],$row['Tag']);
	printf("<td class=\"chartbarCell\">
		<div style=\"width: $width%%;\" class=\"chartbar\">
		<a href=\"/tagged/tag/?tag=%s\"><span>%s</span></a>
		</div>
		</td></tr>",$row['Tag'],$row['Count']);
	}
?>
</tbody></table>
<div style="padding:30px;"> All tags</div><div style="padding:0px 30px 60px;">
<?php
foreach($data as $key=>$row)
	printf("<a style=\"margin-right: 7px;\" href=\"/tagged/tag/?tag=%s\">%s</a> ", $row['Tag'],$row['Tag']);
?>
</div>
</div>
</div>